import request from '@/utils/request'
/*
  获取客户群列表
*/
export function getChatList(data: any) {
  return request({
    url: '/api/corp/wechat/chat/list',
    method: 'post',
    data,
  })
}
/*
  获取客户数量排行榜
*/
export function getUserRankings(data: any) {
  return request({
    url: '/api/corp/wechat/statistic/user/rankings',
    method: 'post',
    data,
  })
}
/*
  添加联系人欢迎语
*/
export function welcomeSave(data: any) {
  return request({
    url: '/api/corp/wechat/ext/contact/welcome/save',
    method: 'post',
    data,
  })
}
/*
  查看添加联系人欢迎语
*/
export function welcomeShow(data: any) {
  return request({
    url: '/api/corp/wechat/ext/contact/welcome/show',
    method: 'post',
    data,
  })
}
/*
  获取客户列表
*/
export function customerList(data: any) {
  return request({
    url: '/api/corp/wechat/customer/list',
    method: 'post',
    data,
  })
}
/*
  添加群发消息
*/
export function chatAddMsg(data: any) {
  return request({
    url: '/api/corp/wechat/chat/add/msg',
    method: 'post',
    data,
  })
}
/*
  更新群发消息
*/
export function chatSaveMsg(data: any) {
  return request({
    url: '/api/corp/wechat/chat/save/msg',
    method: 'post',
    data,
  })
}
/*
  获取群发消息列表
*/
export function chatMsgList(data: any) {
  return request({
    url: '/api/corp/wechat/chat/msg/list',
    method: 'post',
    data,
  })
}
